import Vue from 'vue'
import Home from './Home.vue'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
import Explorer from './Explorer.vue'
import Cart from './Cart.vue'
import Me from './Me.vue'
import App from './App2.vue'

Vue.use(VueRouter)
Vue.use(VueResource)

const router =new VueRouter({
  mode:'history',
  base:__dirname,
  routes:[
    {name:'Home',path:'/',component:Home},
    {name:'Categories',path:'/explorer',component:Explorer},
    {name:'ShoppingCart',path:'/cart',component:Cart},
    {name:'Me',path:'/me',component:Me}
  ]
})
new Vue({
  //http:{root:"/",handers:{}},
  el: '#app',
  router,
  render: h => h(App)
})
